package cn.njxzc.examples;

import java.io.FileInputStream;
import java.io.SequenceInputStream;
import java.io.IOException;

public class Exam9_14 {
	public static void main(String[] args) throws IOException {
		FileInputStream file1 = new FileInputStream(args[0]);
		FileInputStream file2 = new FileInputStream(args[1]);
		SequenceInputStream in = new SequenceInputStream(file1, file2);
		int i;
		while ((i = in.read()) != -1)
			System.out.print((char) i);
		in.close();
		file1.close();
		file2.close();
	}
}
